<template>
  <div class="nodata-wrap g-flex-c">
    <img src="https://weber-imgs.oss-cn-beijing.aliyuncs.com/ty/merchant/market/success.gif" alt="">
    <p class="tips">油站置顶成功</p>
    <el-button type="primary" @click="$router.push({path: '/dataAnalyze/dataAnalyze_index'})">活动列表</el-button>
    <p class="route-text">{{time}}秒钟后，将自动为您跳转至活动列表页</p>
  </div>
</template>
<script>
export default {
  name: 'noData',
  data () {
    return {
      time: 3
    }
  },
  mounted () {
    let timer = setInterval(() => {
      if (--this.time === 0) {
        clearInterval(timer)
        this.$router.push({path: '/dataAnalyze/dataAnalyze_index'})
      }
    }, 1000)
  }
}
</script>
<style lang="less" scoped>
  .nodata-wrap {
    height: 100%;
    flex-direction: column;
    img {
      width: 240px;
      height: 148px;
    }
    .tips {
      font-size: 16px;
      font-weight: bold;
      color: #222222;
    }
    .route-text {
      color: #ef4144;
    }
  }
</style>